﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>后台管理</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        var DialogIframe, ShowIframe, box, doc, temTime;
        $(function () {
            DialogIframe = $("#DialogIframe");
            ShowIframe = $("#ShowIframe");
            DialogIframe.dialog({ bgiframe: true, autoOpen: false, height: 200, width: 200, modal: true, position: 'center',
                'close': function () { ShowIframe.attr('src', ''); }
            });
            box = $("#mainFrame");
            doc = document.documentElement;
            box.load(function () { setAutoHeight(); });
            window.setInterval(setAutoHeight, 200);
            $("#toggle").click(function () {
                var leftmenu = $("#leftNav"), mainbox = $("#mainBox");
                if (this.toggled == true) {
                    leftmenu.css("display", "");
                    this.className = "";
                    this.toggled = false;
                } else {
                    leftmenu.css("display", "none");
                    this.className = "toggled";
                    this.toggled = true;
                    mainbox.css("width", "100%");
                }
            });
        });
        function CreateIframe(title, url, width, height) {
            ShowIframe.attr('src', url);
            DialogIframe.dialog('option', 'height', height);
            DialogIframe.dialog('option', 'width', width);
            DialogIframe.dialog('option', 'title', title);
            DialogIframe.dialog('open');
            temTime = window.setInterval(setFrmAutoHeight, 200);
        }
        function setFrmAutoHeight() {
            var boxdom = ShowIframe.contents().find("#conBox");
            var boxHeight = $(boxdom).outerHeight();
            if (boxHeight > 0) {
                DialogIframe.css('height', boxHeight + "px");
                ShowIframe.attr("height", boxHeight + "px");
                DialogIframe.dialog('option', 'height', boxHeight + 30);
                DialogIframe.dialog('option', 'position', "center");
                clearInterval(temTime);
            } else { }
        }

        function setAutoHeight() {
            var nav = $("#Menu"), navcon = nav.find("dl")[0];
            try {
                var boxdom = box.contents().find("body");
                //alert(boxdom.find("body").html());
                boxHeight = boxdom.innerHeight();
                //var boxHeight = Math.min(boxdom.body.scrollHeight,boxdom.documentElement.scrollHeight);
                var boxh = doc.clientHeight - 103 - 50;
                var maxh = Math.max($(navcon).outerHeight(), boxHeight);
                if (boxh < maxh) boxh = maxh;
                nav.css("height", (boxh + "px"));
                box.css("height", (boxh + "px"));
            } catch (e) { }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <div id="Header">
        <div class="topinfo">
            <div class="headinfo">
                <img src="images/topico.gif" alt="" />
                您好!
                <asp:Label ID="lblName" runat="server"></asp:Label>
                |
                <asp:Label ID="lblDay" runat="server" Text=""></asp:Label>
                | <a href="../index.html" target="_blank">站点首页</a> | <a href="javascript:void(0);"
                    onclick="parent.location.href='Default.aspx?type=exit'">退出</a>
            </div>
        </div>
    </div>
    <div id="toggle">
    </div>
    <div id="Body">
        <table id="mainTable">
            <tr>
                <td id="leftNav">
                    <div class="navtit">
                        <img src="images/lnavtit-ico.gif" alt="系统管理" />系统管理</div>
                    <div id="Menu" class="mainmenu">
                        <dl>
                            <dt runat="server" id="SortTitle">分类管理</dt>
                            <dd runat="server" id="Sort">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('SortInfoList.aspx?type=2',this.innerHTML)">
                                        疾病分类列表</a></li>
                                    <li style="display: none"><a href="javascript:void(0);" onclick="getPage('SortInfoList.aspx?type=4',this.innerHTML)">
                                        专题分类列表</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('SortInfoList.aspx?type=11',this.innerHTML)">
                                        专家答疑分类</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('SortInfoList.aspx?type=10',this.innerHTML)">
                                        症状分类</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="Article">文章管理</dt>
                            <dd>
                                <ul>
                                    <li runat="server" id="News"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=3',this.innerHTML)">
                                        新闻列表</a></li>
                                    <li runat="server" id="Disease"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=2',this.innerHTML)">
                                        疾病列表</a></li>
                                    <li runat="server" id="Subject"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=4',this.innerHTML)">
                                        热点专题列表</a></li>
                                    <li runat="server" id="Expert"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=5',this.innerHTML)">
                                        专家团队列表</a></li>
                                    <li runat="server" id="Equipment"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=6',this.innerHTML)">
                                        设备列表</a></li>
                                    <li runat="server" id="Technology"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=7',this.innerHTML)">
                                        前沿技术列表</a></li>
                                    <li runat="server" id="Case"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=8',this.innerHTML)">
                                        成功案例列表</a></li>
                                    <li runat="server" id="Health"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=10',this.innerHTML)">症状列表</a></li>
                                    <li runat="server" id="FeedBack"><a href="javascript:void(0);"
                                        onclick="getPage('FeedBackList.aspx',this.innerHTML)">专家答疑列表</a></li>
                                    <li runat="server" id="About"><a href="javascript:void(0);" onclick="getPage('ArticleList.aspx?type=1',this.innerHTML)">
                                        关于我们列表</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="AdverTitle">广告栏管理</dt>
                            <dd runat="server" id="Adver">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('SetAdver.aspx',this.innerHTML)">
                                        基础广告栏</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=1',this.innerHTML)">
                                        头部广告栏</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=2',this.innerHTML)">
                                        首页广告栏</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=3',this.innerHTML)">
                                        首页荣誉</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=4',this.innerHTML)">
                                        专题广告栏</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=5',this.innerHTML)">
                                        医院环境广告栏</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=8',this.innerHTML)">
                                        疾病幻灯片</a></li>
                                    <li style="display: none"><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=10',this.innerHTML)">
                                        症状广告栏</a></li>
                                    <li style="display: none"><a href="javascript:void(0);" onclick="getPage('BannerList.aspx?type=12',this.innerHTML)">
                                        症状广告栏</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="SiteTitle">站点管理</dt>
                            <dd runat="server" id="Site">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('LinkList.aspx',this.innerHTML)">
                                        友情链接</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('SetConfigInfo.aspx',this.innerHTML)">
                                        站点设置</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="AdminTitle">管理员管理</dt>
                            <dd runat="server" id="Admin">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('AdminTypeList.aspx',this.innerHTML)">
                                        权限组列表</a></li>
                                    <li><a href="javascript:void(0);" onclick="getPage('AdminList.aspx',this.innerHTML)">
                                        管理员列表</a></li>
                                </ul>
                            </dd>
                            <dt>帐号管理</dt>
                            <dd>
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('EditAdminInfo.aspx',this.innerHTML)">
                                        修改密码</a></li>
                                </ul>
                            </dd>
                        </dl>
                    </div>
                    <div class="navfoot">
                    </div>
                </td>
                <td id="mainBox">
                    <div class="boxhead">
                        <div>
                            <div>
                                <div id="mainTxt">
                                    管理首页</div>
                            </div>
                        </div>
                    </div>
                    <div id="Container" class="boxbody">
                        <iframe id="mainFrame" scrolling="no" allowtransparency="yes" frameborder="0" src="ArticleList.aspx?type=2"
                            style="height: 100%"></iframe>
                    </div>
                    <div class="boxfoot">
                        <div>
                            <div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="Footer">
        <div class="copyrights">
        </div>
    </div>
    <div id="DialogIframe" title="无" style="display: none;">
        <iframe id="ShowIframe" frameborder="0" width="100%" height="100%" scrolling="no"
            allowtransparency="yes"></iframe>
    </div>
    </form>
</body>
</html>
